package study.interfaceCallBack;

/**
 * @author: chengchao
 * @description:
 * @date: create in 2021/9/17
 **/
public class InterfaceCallBackMainTest {

    private static void twoSyHello(String beanName, CallBack callBack) {
        System.out.println("===" + beanName);
        CallBackInfo callBackInfo = callBack.sayHello();
        System.out.println("ook");
    }

    public static void main(String[] args) {

        twoSyHello("cycleA", new CallBack() {
            public CallBackInfo sayHello() {
                System.out.println("------->");
                return new CallBackInfo();
            }
        });


    }

}
